<template>
	<view class="topic f animated  bounceIn" @tap="toDetail">
		<view class="t-l f-ajc">
			<image :src="topic.tImage" mode="scaleToFill"></image>
		</view>
		<view class="t-r">
			<view>#{{topic.tName}}#</view>
			<view>{{topic.tInfo}}</view>
			<view class="num f">
				<view>动态 {{topic.tNews}}</view>
				<view>今日 {{topic.tToday}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
			}
		},
		props:{
			topic: Object
		},
		methods:{
			toDetail(){
				uni.navigateTo({
					url: '../../pages/topic-detail/topic-detail',
				});
			}
		}
	}
</script>

<style scoped>
	.topic {
		padding-bottom: 20rpx;
		margin-top: 20rpx;
		border-bottom: 1rpx solid rgba(1,1,2,0.1);
	}
	.t-l {
		margin-right: 20rpx;
	}
	.t-l > image {
		width: 200rpx;
		height: 200rpx;
		border-radius: 20rpx;
		
	}
	.t-r > view {
		color: #D4D0D4;
		margin-top: 5rpx;
	}
	
	.t-r > view:first-child {
		color: #626162;
		font-size: 40rpx;
		font-weight: 700;
	}
	
	.num > view{
		margin-right: 10rpx;
	}
</style>
